import 'package:flutter/material.dart';
import 'package:flutter_buisiness_2006a/bean/category_goods_list_bean_result.dart';

class DetailInfoProvider with ChangeNotifier {
  CategoryGoodsListBean? goodsInfo;

  //控制tab的左右切换
  bool isLeft = true;
  bool isRight = false;

  setGoodsInfo(goodsInfo) {
    this.goodsInfo = goodsInfo;
    notifyListeners();
  }

  changeLeftAndRight(String changeState) {
    if (changeState == 'left') {
      isLeft = true;
      isRight = false;
    } else {
      isLeft = false;
      isRight = true;
    }
    notifyListeners();
  }
}
